﻿<Window x:Class="OrzRefectorMenu.ClassTemplate"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:control="clr-namespace:OrzRefectorMenu.AssignUserControl"
        Title="MainWindow" Height="350" Width="525"   
          Margin="10,10,10,10"
        >
    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#E3EFFF" Offset="0"/>
            <GradientStop Color="#C4DDFF" Offset="0.992"/>
            <GradientStop Color="#ADD1FF" Offset="0.085"/>
        </LinearGradientBrush>
    </Window.Background>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="10"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Margin="10,5,0,0" Orientation="Horizontal" Height="40" >
        </StackPanel>

        <Border Margin="10,5,10,10" Grid.Row="1" CornerRadius="4,4,4,4" BorderBrush="#FF83BBF4" Background="#FFFCFCFC" BorderThickness="2,2,2,2" Width="Auto" Height="Auto" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <DockPanel LastChildFill="True" Width="Auto" Height="Auto" Margin="10,10,10,10" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                <DockPanel LastChildFill="True">
                    <Expander DockPanel.Dock="Top" Header="Search" IsExpanded="True" Style="{StaticResource expander}">
                        <StackPanel  Background="white" HorizontalAlignment="Stretch" Orientation="Horizontal">
                            <Label Content="Period Code" Margin="5"/>
                            <ComboBox x:Name="PeriodCodeComboBox"  Height="25"
                                                  DisplayMemberPath="PeriodCode"
                                                  SelectedValuePath="PeriodCode"
                                                  SelectedValue="{Binding Path=PeriodCode, Mode=OneWay}"
                                                  Width="110" Margin="5"/>
                            <Button x:Name="GoButton" Content="Go"  Width="40" Margin="5"/>
                            <TextBlock Margin="5" Text="Generate Client Charge for Current Period"/>
                            <Button x:Name="GenerateClientChargeButton" Content="Generate" Margin="5"/>
                        </StackPanel>
                    </Expander>


                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <DockPanel Grid.Column="0">
                            <TextBlock DockPanel.Dock="Top" Text="unposted" Margin="5"/>
                            <TreeView  Name="directoryView">
                                <TreeView.Resources>

                                </TreeView.Resources>
                            </TreeView>
                        </DockPanel>
     
                        
                        <GridSplitter Grid.Column="1"
                    Name="splitter"
                    Width="4"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Stretch"></GridSplitter>
                        <Grid  Grid.Column="2">
                            <Grid.RowDefinitions>
                                <RowDefinition/>
                                <RowDefinition/>
                            </Grid.RowDefinitions>

                            <DockPanel Grid.Row="0">
                                <TextBlock DockPanel.Dock="Top" Text="unposted" Margin="5"/>
                                <TextBox/>
                            </DockPanel>
                            <GridSplitter Height="4"   HorizontalAlignment="Stretch" VerticalAlignment="Bottom"></GridSplitter>
                            <DockPanel Grid.Row="2">
                                <TextBlock DockPanel.Dock="Top" Text="Generated" Margin="5"/>
                                <TextBox/>
                            </DockPanel>
                        </Grid>

                    </Grid>
                </DockPanel>
            </DockPanel>
        </Border>
    </Grid>
</Window>
